home *** CD-ROM | disk | FTP | other *** search
- /*
- $VER: CDO.dopus5 1.0 (6.8.98) D.Clarke
- Changes your shell path to lister path
- */
- options results
- options failat 21
- if ~show('P','DOPUS.1') then do /* Check for DOPUS.1 ARexx port */
- Say "DirectoryOpus is not running." /* Warn user if DOpus not running */
- Exit (5) /* Exit with result code = 5 (Warn) */
- end /* End this loop */
- address 'DOPUS.1'
- lister query active /* Look for an Active lister */
- if result ~= '' & result ~= 'RESULT' then call gotone /* We've found one */
- lister query source /* Look for a Source lister */
- if result ~= '' & result ~= 'RESULT' then call gotone /* We've found one */
- lister query dest /* Look for a Destination lister */
- if result ~= '' & result ~= 'RESULT' then call gotone /* We've found one */
- lister query all /* Look for any non-busy lister */
- if result ~= '' & result ~= 'RESULT' then call gotone /* We've found one */
- dopus request '"No non-busy listers found" OK' /* We didn't find any */
- exit (5) /* suitable listers */
-
- gotone:
- parse var result handle . /* Parse the first lister handle */
- lister query handle path /* Ask for it's current path */
- path = strip(result,B,'"') /* Store path, strip "'s */
- push path /* Push the result into the input stream */
- exit
-